package com.momo.mapper.mapper;

import com.momo.mapper.dataobject.UserPasswordDO;
import org.apache.ibatis.annotations.Param;

/**
 * 由于需要对分页支持,请直接使用对应的DAO类
 * 注意:此结构有系统生成,禁止手工修改,以免被覆盖,请通过dalgen生成
 * The Table USER_PASSWORD.
 * USER_PASSWORD
 */
public interface UserPasswordDOMapper{

    /**
     * desc:插入表:USER_PASSWORD.<br/>
     * descSql =  SELECT LAST_INSERT_ID() INSERT INTO USER_PASSWORD( ENCRPT_PASSWORD ,USER_ID )VALUES( #{encrptPassword,jdbcType=VARCHAR} ,#{userId,jdbcType=INTEGER} )
     * @param entity entity
     * @return int
     */
    int insert(UserPasswordDO entity);
    /**
     * desc:更新表:USER_PASSWORD.<br/>
     * descSql =  UPDATE USER_PASSWORD SET ENCRPT_PASSWORD = #{encrptPassword,jdbcType=VARCHAR} ,USER_ID = #{userId,jdbcType=INTEGER} WHERE ID = #{id,jdbcType=INTEGER}
     * @param entity entity
     * @return int
     */
    int update(UserPasswordDO entity);
    /**
     * desc:根据主键删除数据:USER_PASSWORD.<br/>
     * descSql =  DELETE FROM USER_PASSWORD WHERE ID = #{id,jdbcType=INTEGER}
     * @param id id
     * @return int
     */
    int deleteById(Integer id);
    /**
     * desc:根据主键获取数据:USER_PASSWORD.<br/>
     * descSql =  SELECT * FROM USER_PASSWORD WHERE ID = #{id,jdbcType=INTEGER}
     * @param id id
     * @return UserPasswordDO
     */
    UserPasswordDO getById(Integer id);
}
